export const request=(params) =>{
    const baseUrl ="http://localhost:9876";
    return new Promise((resolve,reject)=> {
        wx.request({
            ...params,
            url:baseUrl+params.url,
            success: (res) => {
                resolve(res)
            },
            fail: (err) => {
                reject(err)
            }
        });
    })
}